package wheres.mijao;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.SystemClock;
import android.view.View;
import android.widget.Chronometer;
import android.widget.ImageButton;

public class Salvador extends Activity{
	
	Chronometer chronometer;
	ImageButton voltar;
	
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.salvador);
		
		voltar = (ImageButton) findViewById(R.id.botaoVoltar);
		chronometer = (Chronometer) findViewById(R.id.chronometer);
		chronometer.setBase(SystemClock.elapsedRealtime());
		chronometer.start();
		
		voltar.setOnClickListener(new View.OnClickListener() {
			
			@Override
			public void onClick(View v) {
				Intent troca = new Intent(Salvador.this, MapaFase.class);
				Salvador.this.startActivity(troca);
				Salvador.this.finish();
			}
		});
	}
}
